<?php 
include TMPL_PATH.'public/header.phtml';
?>

<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>问卷表</em></a><span>|</span><a href='<?php echo U('survey/survey_list');?>' ><em>返回</em></a></div>

</div>
<div class="bk"></div>
<div class="pad_10">
<div class="table-list">
<table width="100%" cellspacing="0" bordercolor="#CDE0F5" border="1" cellpadding="0">
      <thead>
		<tr>
			<th align='center' width="5">问题一</th>
			<th align='center'  width="5">问题二</th>
			<th align='center'  width="5">问题三</th>
			<th align='center'  width="5">问题四</th>
			<th align='center'  width="5">问题五</th>
			<th align='center'  width="5">问题六</th>
			<th align='center'  width="5">问题七</th>
			<th align='center'  width="1">参与问卷时间</th>
			<th align='center'  width="150">留言</th>
	  </tr>
	 </thead>
  <tbody>
  <?php foreach ($survey_info as $v):?>
<tr>
<td><?php if($v['question1']==1){echo "A";}elseif($v['question1']==2){echo "B";}elseif($v['question1']==3){echo "C";}elseif($v['question1']==4){echo "D";}?></td>
<td><?php if($v['question2']==1){echo "A";}elseif($v['question2']==2){echo "B";}elseif($v['question2']==3){echo "C";}elseif($v['question2']==4){echo "D";}elseif($v['question2']==5){echo "D";}?></td>
<td><?php if($v['question3']==1){echo "A";}elseif($v['question3']==2){echo "B";}elseif($v['question3']==3){echo "C";}?></td>
<td><?php if($v['question4']==1){echo "A";}elseif($v['question4']==2){echo "B";}elseif($v['question4']==3){echo "C";}?></td>
<td><?php if($v['question5']==1){echo "A";}elseif($v['question5']==2){echo "B";}?></td>
<td><?php if($v['question6']==1){echo "A";}elseif($v['question6']==2){echo "B";}elseif($v['question6']==3){echo "C";}?></td>
<td><?php if($v['question7']==1){echo "A";}elseif($v['question7']==2){echo "B";}elseif($v['question7']==3){echo "C";}elseif($v['question7']==4){echo "D";}?></td>
<td><?php echo date('Y-m-d H:i',$v['time'])?></td>
<td><?php echo $v['message']?></td>
</tr>
<?php endforeach;?>
	</tbody>
	</table>
<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
